package com.my.vote.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.sskj.core.entity.BaseEntity;

/***
 * 投票问题
 * 
 * @author chenliang
 *
 */
@Entity
@Table(name = "vote_question")
public class VoteQuestion extends BaseEntity {

	private static final long serialVersionUID = -3985339617758601766L;

	/** 投票主题ID */
	@Column(length = 36)
	private String subjectId;

	/** 标题 */
	@Column(length = 60)
	private String title;

	/** 说明 */
	@Column(length = 1000)
	private String description;

	/** 类型 */
	@Column
	private QuestionType type = QuestionType.Single;

	/** 删除标记 */
	@Column
	private boolean delFlag;

	/** 序号 */
	@Column
	private int orderNum;

	public String getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(String subjectId) {
		this.subjectId = subjectId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public QuestionType getType() {
		return type;
	}

	public void setType(QuestionType type) {
		this.type = type;
	}

	public boolean isDelFlag() {
		return delFlag;
	}

	public void setDelFlag(boolean delFlag) {
		this.delFlag = delFlag;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

}
